package net.jumpengine.bean;

import javafx.scene.paint.Color;
import javafx.scene.text.Font;
import net.jumpengine.Manager;
import net.jumpengine.po.Border;

/**
 * 有状态和边框的文字Base,文字不分行,用于不想用IControl子类导致的鼠标事件与状态的冲突
 * <br /><br />
 * <b>作者:&nbsp;</b>张天文 <br />
 * <b>日期:&nbsp;</b>2020年2月29日 下午10:19:34<br />
 * @date
 */
public abstract class TextState extends Base{
	protected Border border;
	protected Color color=Color.WHITE;
	protected Color backColor;
	protected Font font=Manager.getFont();
	protected String text;
	protected Enum<?> state;

	public TextState(int x, int y, int width, int height,String text,Border border) {
		this(x, y, width, height,0,text,border);
	}
	
	public TextState(int x, int y, int width, int height,int index,String text,Border border) {
		super(x, y, width, height,index);
		this.text=text;
		this.border=border;
	}

	public Border getBorder() {
		return border;
	}

	public void setBorder(Border border) {
		this.border = border;
	}

	public Color getColor() {
		return color;
	}

	public void setColor(Color color) {
		this.color = color;
	}

	public Color getBackColor() {
		return backColor;
	}

	public void setBackColor(Color backColor) {
		this.backColor = backColor;
	}

	public Font getFont() {
		return font;
	}

	public void setFont(Font font) {
		this.font = font;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public Enum<?> getState() {
		return state;
	}

	public void setState(Enum<?> state) {
		this.state = state;
	}
}
